﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

namespace StarterKit.Web.Views.MasterPages
{
    public partial class Site : BaseMasterPage
    {
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            //// Add meta tag if the current page is set to be exluded from search engines
            //if (CurrentPage.DisableIndexing)
            //{
            //    header.Controls.Add(new HtmlMeta { Name = "robots", Content = "noindex" });
            //}

            //// Header and footer can be hidden by the editor, but will always be hidden in block preview mode
            //HeaderPlaceHolder.Visible = !CurrentPage.HideSiteHeader && !(Page is BlockPreview);
            //footer.Visible = !CurrentPage.HideSiteFooter && !(Page is BlockPreview);

            //// We only display breadcrumbs if the header is visible
            //Breadcrumb.Visible = HeaderPlaceHolder.Visible;
        }
    }
}